<!DOCTYPE html>
<html>

<head>
  <meta charset="UTF-8">
  <meta name="viewport"
    content="maximum-scale=1.0,minimum-scale=1.0,user-scalable=0,width=device-width,initial-scale=1.0" />
  <meta name="format-detection" content="telephone=no,email=no,date=no,address=no">
  <title>高压氧多重耐药患者治疗舱消毒记录单-frame</title>
  <link rel="stylesheet" type="text/css" href="../css/api.css" />
  <link rel="stylesheet" type="text/css" href="../css/style.css" />
  <link rel="stylesheet" type="text/css" href="../css/aui.2.0.css" />
  <style>
    #app {
      padding-top: 20px;
    }

    .aui-border-t:before,
    .aui-border-t::after {
      display: none;
    }

    .aui-card-list {
      background-color: transparent;
    }

    .aui-card-list-content-padded {
      display: -webkit-flex;
      display: flex;
      justify-content: space-around;
      position: relative;
      padding: 0 !important;
    }

    .aui-row-padded {
      width: 40%;
    }

    .aui-card-list-content-padded:nth-child(odd)>.aui-row-padded {
      padding-right: 20px !important;
    }

    .aui-card-list-content-padded:nth-child(even)>.aui-row-padded {
      padding-left: 20px !important;
    }

    .aui-card-list-content-padded:nth-child(even)>section {
      height: 100%;
      position: absolute;
      width: 3px;
      background-color: #0064B0;
      left: 50%;
    }

    .aui-card-list-content-padded:nth-child(odd)>section {
      height: 100%;
      position: absolute;
      width: 3px;
      background-color: #0064B0;
      right: 50%;
      transform: translate(3px);
    }

    .aui-card-list-content-padded>section>p {
      position: absolute;
      left: 50%;
      top: 0;
      transform: translateX(-50%);
      width: 60px;
      height: 60px;
      border-radius: 50%;
      background-color: #0064B0;
      line-height: 60px;
      text-align: center;
      color: #fff;
    }

    .aui-list-header {
      position: relative;
      background-color: #0064B0;
      color: #fff;
      padding: 10px;
      border-radius: 5px;
    }

    .aui-card-list-content-padded:nth-child(odd)>.aui-row-padded>.aui-list-header::after {
      position: absolute;
      top: 50%;
      right: -30px;
      transform: translateY(-50%);
      content: '';
      height: 0px;
      width: 0px;
      border-top: 15px solid transparent;
      border-right: 15px solid transparent;
      border-bottom: 15px solid transparent;
      border-left: 15px solid #0064B0;
    }

    .aui-card-list-content-padded:nth-child(even)>.aui-row-padded>.aui-list-header::after {
      position: absolute;
      top: 50%;
      left: -30px;
      transform: translateY(-50%);
      content: '';
      height: 0px;
      width: 0px;
      border-top: 15px solid transparent;
      border-left: 15px solid transparent;
      border-bottom: 15px solid transparent;
      border-right: 15px solid #0064B0;
    }
    .aui-row-padded-wrapper>.aui-col-xs-6{
      background-color: #fff;
      padding: 5px 10px;
      color: #666;
      font-size: 16px;
      width: 50%!important;
      float: left;
    }
  </style>
  </style>
</head>

<body>
  <main id="app">
    <div class="aui-card-list">
      <div id="HoMultidrugResistance">
     
      </div>
    </div>
  </main>
</body>

</html>

<script src="../script/api.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/vue.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/jquery.min.js" charset="utf-8" type="text/javascript"></script>
<script src="../js/ToConfigure.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-toast.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-dialog.js" charset="utf-8" type="text/javascript"></script>
<script src="../script/aui-tab.js" charset="utf-8" type="text/javascript"></script>
<script type="text/javascript">
  apiready = function () {
    var vm = new Vue({
      el: '#app',
      data: {
        searchInfo: '',
        DrugResistantBacteria: [],  //耐药菌消毒记录信息
        Url_IP: ""                 //医院IP地址
      }, created() {
        //定义toast提示框
        var toast = new auiToast();
        //拼接页面
        var HoMultidrugResistance = "";
        //清空页面
        $("#HoMultidrugResistance").html("");
        var Js_Parms = new Object();
        Js_Parms.currPage = 1;
        var hoTreatmentRegisterEntity = new Object();
        /**
         * 获取住院号
         * @type {jQuery}
         */
        hoTreatmentRegisterEntity.trPatientNo = $("#trPatientNo").val();
        /**
         * 赋值治疗登记实体类
         * @type {Object}
         */
        Js_Parms.hoTreatmentRegisterEntity = hoTreatmentRegisterEntity;


        var hoArchivalInformationEntity = new Object();
        /**
         * 获取姓名
         * @type {jQuery}
         */
        hoArchivalInformationEntity.aiName = $("#aiName").val();
        /**
         * 赋值档案实体类
         */
        Js_Parms.hoArchivalInformationEntity = hoArchivalInformationEntity;

        var JsonStr = JSON.stringify(Js_Parms);
        //获取所属医院IP地址
        var Url_IP = ToConfigure_IP("Gorgeous");
        $.ajax({
          url: Url_IP + '/disinfectioninspection/homultidrugresistance/getHoMultidrugResistance',
          type: 'post',
          async: false,
          contentType: "application/json",
          dataType: "json",
          data: JsonStr,
          success: function (result) {
            /**
             * 验证返回信息是否为空
             */
            if (result.success == true) {
              $.each(result.data.list, function (i, o) {
                if (i % 2 == 0) {
                  HoMultidrugResistance += "<div class='aui-card-list-content-padded aui-border-b aui-border-t'>";
                  HoMultidrugResistance += "<div class='aui-row aui-row-padded aui-row aui-row-padded-wrapper'>";
                  HoMultidrugResistance += "<li class='aui-list-header'>日期：" + o.mrTime + "</li>";
                  // HoMultidrugResistance+="<div class='aui-col-xs-12'>";
                  // HoMultidrugResistance+="<div class='aui-list-item-inner'>";
                  // HoMultidrugResistance+="<div class='aui-list-item-label'>";
                  // HoMultidrugResistance+="签名：";
                  // HoMultidrugResistance+="<span>签名掐灭其898</span>";
                  // HoMultidrugResistance+="</div></div></div>";
                  if (o.mrBulkhead == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>消毒舱壁：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>消毒舱壁：<span>✖</span></div></div></div>";
                  }
                  if (o.mrMesa == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>消毒台面：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>消毒台面：<span>✖</span></div></div></div>";
                  }
                  if (o.mrAirDisinfect == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>空气消毒：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>空气消毒：<span>✖</span></div></div></div>";
                  } 
                  if (o.mrGround == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>消毒地面：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>消毒地面：<span>✖</span></div></div></div>";
                  }
                  
                  HoMultidrugResistance += "</div>";
                  HoMultidrugResistance += "<section>";
                  HoMultidrugResistance += "<p>" + (i + 1) + "</p>";
                  HoMultidrugResistance += "</section>";
                  HoMultidrugResistance += "<div class='aui-row aui-row-padded'></div>";
                  HoMultidrugResistance += "</div>";

                } else {

                  HoMultidrugResistance += "<div class='aui-card-list-content-padded aui-border-b aui-border-t'>";
                  HoMultidrugResistance += "<div class='aui-row aui-row-padded'></div>";
                  HoMultidrugResistance += "<section>";
                  HoMultidrugResistance += "<p>" + (i + 1) + "</p>";
                  HoMultidrugResistance += "</section>";
                  HoMultidrugResistance += "<div class='aui-row aui-row-padded aui-row aui-row-padded-wrapper'>";
                  HoMultidrugResistance += "<li class='aui-list-header'>日期：" + o.mrTime + "</li>";
                  // HoMultidrugResistance+="<div class='aui-col-xs-12'>";
                  // HoMultidrugResistance+="<div class='aui-list-item-inner'>";
                  // HoMultidrugResistance+="<div class='aui-list-item-label'>";
                  // HoMultidrugResistance+="签名：";
                  // HoMultidrugResistance+="<span>签名掐灭其898</span>";
                  // HoMultidrugResistance+="</div></div></div>";
                  if (o.mrBulkhead == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>舱壁：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>舱壁：<span>✖</span></div></div></div>";
                  }
                  if (o.mrMesa == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>台面：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>台面：<span>✖</span></div></div></div>";
                  }
                  if (o.mrGround == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>地面：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>地面：<span>✖</span></div></div></div>";
                  }
                  if (o.mrAirDisinfect == 1) {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>空气：<span>✔</span></div></div></div>";
                  } else {
                    HoMultidrugResistance += "<div class='aui-col-xs-6'><div class='aui-list-item-inner'><div class='aui-list-item-label'>空气：<span>✖</span></div></div></div>";
                  }
                  HoMultidrugResistance += "</div>";
                  HoMultidrugResistance += "</div>";
                }
              })
              $("#HoMultidrugResistance").html(HoMultidrugResistance);
            } else {
              toast.fail({
                title: "获取失败",
                duration: 2000
              });
            }
          },
          error: function (result) {
            api.hideProgress();
            toast.fail({
              title: "获取失败",
              duration: 2000
            });
          }
        });
      },
    })
  }
</script>